package com.dlc.longweisheng.chongdianxian.pub;

import com.google.gson.annotations.SerializedName;

public class PasswordsResponse {
    private String result;
    private String message;
    @SerializedName("responseInfo")
    private ResponseBean responseBean;

    public void setResponseBean(ResponseBean responseBean) {
        this.responseBean = responseBean;
    }

    public ResponseBean getResponseBean() {
        return responseBean;
    }

    public static class ResponseBean {
        @SerializedName("chargerPwds")
        private String passwords;

        private String factorsIdx;

        public void setPasswords(String passwords) {
            this.passwords = passwords;
        }

        public String getPasswords() {
            return passwords;
        }

        public String[] toPasswordsArray() {
            return passwords.split(";");
        }

        public void setFactorsIdx(String factorsIdx) {
            this.factorsIdx = factorsIdx;
        }

        public String getFactorsIdx() {
            return factorsIdx;
        }
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getResult() {
        return result;
    }

    public boolean isResultSuccess() {
        return "success".equals(result);
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
